package com.rdc.qingkou.retrofitService;


import com.rdc.qingkou.dto.CardDTO;
import com.rdc.qingkou.dto.ResultDTO;
import com.rdc.qingkou.dto.UserInfoDTO;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface IOtherHomepageService {

    @GET("?")
    Observable<Response<List<CardDTO>>> getCardsByUserId(@Query("userId") int userId, @Query("currentPage") int currentPage);


    @POST("?")
    Observable<Response<ResultDTO>> subscribe(@Query("subscribeId") int subscribeId, @Query("userId") int userId);

    @GET("?")
    Observable<Response<UserInfoDTO>> getUserInfo(@Query("userId") int userId);

    @GET("?")
    Observable<Response<ResultDTO>> getSubscribeStatus(@Query("subscribeId") int subscribeId, @Query("userId") int userId);

}
